package v1

import (
	"github.com/gin-gonic/gin"
)

type ICasbinController interface {
	IRestController
}
type CasbinController struct {
	// 空结构体
	//e *casbin.Enforcer
}
// @Summary 新增Casbin规则
// @Description 在数据库中获取Casbin信息
// @Tags Casbin
// @Accept  json
// @Produce  json
// @Security ApiKeyAuth
// @Success 200 {object} model.SysCasbin "{"code":0,"msg":"OK","data": {}}"
// @Router /api/v1/casbin [post]
func (ce CasbinController) Post(c *gin.Context) {
	panic("implement me")
}
// @Summary 获取Casbin规则
// @Description 在数据库中获取Casbin信息
// @Tags Casbin
// @Accept  json
// @Produce  json
// @Security ApiKeyAuth
// @Success 200 {object} []model.SysCasbin "{"code":0,"msg":"OK","data": {}}"
// @Router /api/v1/casbin [get]
func (ce CasbinController) GetList(c *gin.Context) {
	panic("implement me")
}
// @Summary 获取Casbin规则
// @Description 在数据库中获取Casbin信息
// @Tags Casbin
// @Accept  json
// @Produce  json
// @Security ApiKeyAuth
// @Param id path uint64 true "casbin_rule id in database"
// @Success 200 {object} model.SysCasbin "{"code":0,"msg":"OK","data": {}}"
// @Router /api/v1/casbin/{id} [get]
func (ce CasbinController) Get(c *gin.Context) {
	panic("implement me")
}
// @Summary 更新Casbin规则
// @Description 在数据库中更新Casbin信息
// @Tags Casbin
// @Accept  json
// @Produce  json
// @Security ApiKeyAuth
// @Param id path uint64 true "casbin_rule id in database"
// @Success 200 {object} model.SysCasbin "{"code":0,"msg":"OK","data": {}}"
// @Router /api/v1/casbin/{id} [put]
func (ce CasbinController) Put(c *gin.Context) {
	panic("implement me")
}
// @Summary 更新Casbin规则
// @Description 在数据库中更新Casbin信息
// @Tags Casbin
// @Accept  json
// @Produce  json
// @Security ApiKeyAuth
// @Param id path uint64 true "casbin_rule id in database"
// @Success 200 {object} model.SysCasbin "{"code":0,"msg":"OK","data": {}}"
// @Router /api/v1/casbin/{id} [patch]
func (ce CasbinController) Patch(c *gin.Context) {
	panic("implement me")
}
// @Summary 删除Casbin规则
// @Description 在数据库中删除Casbin信息
// @Tags Casbin
// @Accept  json
// @Produce  json
// @Security ApiKeyAuth
// @Param id path uint64 true "casbin_rule id in database"
// @Success 200 {object} model.SysCasbin "{"code":0,"msg":"OK","data": {}}"
// @Router /api/v1/casbin/{id} [delete]
func (ce CasbinController) Delete(c *gin.Context) {
	panic("implement me")
}

func NewCasbinController() *CasbinController {
	return &CasbinController{}
}
